<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户登录</title>
<script type="text/javascript" src="<?=$_BASE_DIR?>js/jquery.min.js"></script>
<link href="<?=$_BASE_DIR?>css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
var login_image = '<?=$_BASE_DIR?>css/image/tj.jpg';
var login_image_h = '<?=$_BASE_DIR?>css/image/tj-h.jpg';
var home_image = '<?=$_BASE_DIR?>css/image/sy.jpg';
var home_image_h = '<?=$_BASE_DIR?>css/image/sy-h.jpg';
$(function(){
	$('#login_button').mouseover(function(){
		$(this).attr('src',login_image_h);	
	});
	$('#login_button').mouseout(function(){
		$(this).attr('src',login_image);	
	});	
	$('#home_image').mouseover(function(){
		$(this).attr('src',home_image_h);	
	});
	$('#home_image').mouseout(function(){
		$(this).attr('src',home_image);	
	});	
});
</script>
</head>

<body>
<div id="loadhh"></div>
<div id="load">
  <form id="form_userlogin" name="form_userlogin" class="form" action="<?php echo url('admin/login');?>" method="post" enctype="application/x-www-form-urlencoded" qform_group_id="" >
    <div style="height:100px;"></div>
    <div class="ll">用户名 </div>
    <div class="ll">
      <input name="username" type="text" id="username"  size="15" />
    </div>
    <div class="clear"></div>
    <?php if(!empty($error['username'])){?>
    <div class="error_msg"> <span><?php echo $error['username'];?></span> </div>
    <div class="clear"></div>
    <?php }?>
    <?php if(!empty($error['message'])){?>
    <div class="error_msg"> <span><?php echo $error['message'];?></span> </div>
    <div class="clear"></div>
    <?php }?>
    <div class="ll">密&nbsp;&nbsp;&nbsp;码</div>
    <div class="ll">
      <input name="password" type="password" id="password" size="15" />
    </div>
    <div class="clear"></div>
    <?php if(!empty($error['password'])){?>
        <div class="error_msg"> <span><?php echo $error['password'];?></span> </div>
        <div class="clear"></div>
          <?php }?>
    <div class="ll">
      <input name="user_type" type="radio" value="1" <?php if($user_type == 1 || $user_type == 0){echo 'checked';}?> />
      管理员</div>
    <div class="clear"></div>
    <div style="padding-left:20px;padding-top:10px;">
      <input type="image" id="login_button" src="<?=$_BASE_DIR?>css/image/tj.jpg"/>
      &nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo url('index');?>"><img id="home_image" src="<?=$_BASE_DIR?>css/image/sy.jpg"  style="CURSOR: hand" border="0" /></a> </div>
  </form>
</div>
<div id="loadff">  </div>
</body>
</html>
